import Layout from '@/layout'

const workFlowRouter = {
  path: '/work-flow',
  component: Layout,
  redirect: '/dashboard11',
  name: '工作流程',
  alwaysShow: true,
  meta: {
    title: '工作流程',
    icon: 'el-icon-s-operation',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'dashboard12',
      component: () => import('@/views/dashboard/index'),
      name: '我发起的',
      meta: { title: '我发起的', icon: 'people', affix: true }
    }, {
      path: 'dashboard13',
      component: () => import('@/views/dashboard/index'),
      name: '待办事宜',
      meta: { title: '待办事宜', icon: 'el-icon-s-check', affix: true }
    }, {
      path: 'dashboard14',
      component: () => import('@/views/dashboard/index'),
      name: '已办事宜',
      meta: { title: '已办事宜', icon: 'guide', affix: true }
    }, {
      path: 'dashboard15',
      component: () => import('@/views/dashboard/index'),
      name: '流程监控',
      meta: { title: '流程监控', icon: 'el-icon-user', affix: true }
    }
  ]
}
export default workFlowRouter
